/**
 * calculator
 *
 * @author : tzy
 * @Date : 2021-03-22
 * @Description:
 **/

package com.tang.calculator.symbols;

import java.math.BigDecimal;

public class StringValueSymbol implements ValueSymbol {

    String value;

    public StringValueSymbol(String value) {
        this.value = value;
    }

    @Override
    public BigDecimal getValue() {
        return new BigDecimal(this.value.hashCode());
    }

    @Override
    public String getName() {
        return this.value;
    }
}